#@layout()
#define main()
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form">
            <input type="hidden" name="newid" value="#(newid)" />
            <div class="layui-form-item">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    #(student.name)
                </div>
            </div>
            #for(subject : subjectList)
            <div class="layui-form-item">
                <label class="layui-form-label">#(subject.name)</label>
                <div class="layui-input-block">
                    <input type="text" name="#(subject.id)" value="#(subject.result)" required="" lay-verType="tips" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            #end
            <hr/>
            <div class="layui-form-item" style="text-align: center;">
                <button class="layui-btn" lay-submit="" lay-filter="save" url="#(base)/train/addTrainResult">新增</button>
                <button type="button" class="layui-btn layui-btn-primary" function="close">关闭</button>
            </div>
        </form>
    </div>
</div>
#end